package com.ajie.service;

import com.ajie.entity.LookLikeFavourite;
import com.ajie.entity.SysUser;
import com.ajie.utils.QueryInfo;
import com.ajie.utils.Result;
import com.ajie.vo.LoginVo;

import java.util.List;

public interface SysUserService {


    Result login(LoginVo loginVo);
    
    Result findByUserName(String username);
    
    /**
     * 添加用户信息
     */
    Result insert(SysUser user);
    
    /**
     * 修改用户信息
     * @param user
     */

    Result update(SysUser user);
    
    /**
     * 删除用户信息
     * @param id
     */
    Result delete(Long id);
    
    /**
     * 分页查询
     * @param queryInfo
     * @return
     */
    Result findPage(QueryInfo queryInfo);
    
    /**
     * 根据邮件修改密码
     * @param mail
     * @param password
     */
    void updatePwdByMail(String mail, String password);
    
    
    List<LookLikeFavourite> findLookLikeFavourite();
    
    void updateLookLikeFavourite(LookLikeFavourite lookLikeFavourite);
    
    List<LookLikeFavourite> findLookLikeFavouriteByReid(LookLikeFavourite lookLikeFavourite2);
    
    void delLookLikeFavourite();
    
    void insertLookLikeFavouriteByReid(LookLikeFavourite lookLikeFavourite1);
    
    Result findExpert(QueryInfo queryInfo);
    
    void reset();
}
